﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="JT_OrderManager.aspx.cs" Inherits="JTicket.UI.JT_OrderManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
        <tr>
            <td height="25" class="category t2" style="width: 200px">
                订单查询
                </td>
            <td height="25" class="category">
              &nbsp;[提示：双击行显示详细]
            </td>
        </tr>
    </table>
    <table align="left" border="0" bordercolordark="#3890b5" bordercolorlight="#6591be"
        cellpadding="1" cellspacing="1" width="100%">
        <tr>
            <td align="center" bgcolor="#f6f6f6" height="25" style="text-align: left">
                订单号码/客户名称/客户手机：<asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
                <asp:Button CssClass="submitMiniGreen" ID="BtnSelect" runat="server" Text="订单查询"
                    OnClick="BtnSelect_Click1" />
            </td>
        </tr>
        <tr>
            <td align="left" bgcolor="#f6f6f6" height="25">
                <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">已取</asp:ListItem>
                    <asp:ListItem Selected="True" Value="1">未取</asp:ListItem>
                    <asp:ListItem Value="2">所有</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td align="center" bgcolor="#f6f6f6">
                &nbsp;<asp:DataGrid ID="dg1" runat="server" AutoGenerateColumns="False" CellPadding="0"
                    OnItemDataBound="dg1_ItemDataBound" PageSize="20" Width="100%">
                    <HeaderStyle BackColor="#3890B5" Height="25px" HorizontalAlign="Center" />
                    <ItemStyle BackColor="#F6F6F6" Height="25px" HorizontalAlign="Center" />
                    <Columns> 
                        <asp:BoundColumn HeaderText="订单号" DataField="订单号">
                            <HeaderStyle CssClass="B" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="客户名称" DataField="客户名称">
                            <HeaderStyle CssClass="B" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="联系电话" DataField="联系电话">
                            <HeaderStyle CssClass="B" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="演出名称" DataField="演出名称">
                            <HeaderStyle CssClass="B" />
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="演出单位">
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "演出单位")%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="区域">
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "区域")%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                        <asp:BoundColumn HeaderText="总张数" DataField="总张数">
                            <HeaderStyle CssClass="B" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="总计" DataField="总计">
                            <HeaderStyle CssClass="B" />
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="状态">
                            <ItemTemplate>
                                <%#Gstate(DataBinder.Eval(Container.DataItem, "状态").ToString())%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="操作员">
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "操作员")%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="演出日期">
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "演出日期")%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="演出时间">
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "演出时间")%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="取票截止日期">
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "取票截止日期")%>
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
                      <%--  <asp:TemplateColumn HeaderText="取消预订">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" Width="16px" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "订单号").ToString()+"|"+DataBinder.Eval(Container.DataItem, "演出编号").ToString()%>'
                                    CommandName="Delete" ImageUrl="Images/icon_trash.gif" OnClientClick="return confirm('确定要取消该订单!');"
                                    OnCommand="ImageButton1_Command" />
                            </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>--%>

                       <%-- <asp:TemplateColumn HeaderText="预订取票">
                            <ItemTemplate>
                            <a href="#" onclick="GetOrderTikcet('<%#DataBinder.Eval(Container.DataItem,"订单号")%>','<%#DataBinder.Eval(Container.DataItem,"客户名称")%>','<%#DataBinder.Eval(Container.DataItem,"联系电话")%>','<%#DataBinder.Eval(Container.DataItem,"演出编号")%>','<%#DataBinder.Eval(Container.DataItem,"总计")%>','<%#DataBinder.Eval(Container.DataItem,"总张数")%>');">取票</a>
                              </ItemTemplate>
                            <HeaderStyle CssClass="B" />
                        </asp:TemplateColumn>
--%>
                    </Columns>
                    <PagerStyle Visible="False" />
                </asp:DataGrid>
            </td>
        </tr>
    </table>
</asp:Content>
